<template>
	<view class="content">
		<view class="tab-list">
			<view class="tab-li" :class="active == index ?'active':''" v-for="(item,index) in tabList" :key="index">
				{{ item.name }}
			</view>
		</view>
		<view class="coupon-list">
			<view class="coupon-li">
				<view class="coupon-li-left">
					<view class="price">
						<text>¥</text>
						<view>1.00</view>
					</view>
					<view class="des">满30元可减</view>
				</view>
				<view class="coupon-li-right">
					<view class="title u-line-2">仅可用于小程序洗鞋下单使用</view>
					<view class="bottom">
						<text class="time">
							2022.06.01-2022.08.31
						</text>
						<button class="u-reset-button">点击领取</button>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				active:0,
				tabList:[
					{
						name:'待领取'
					},
					{
						name:'未使用'
					},
					{
						name:'已使用'
					}
				]
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="less">
.content{
	padding: 0 20rpx;
}

.tab-list{
	display: flex;
	align-items: center;
	height: 86rpx;
	.tab-li{
		margin-right: 40rpx;
		font-size: 28rpx;
	}
	.active{
		color: #FF9A33;
		font-weight: bold;
	}
}

.coupon-list{
	width: 100%;
	min-height: 100vh;
	background: #FFFFFF;
	border-radius: 10rpx;
	padding: 30rpx 12rpx;
}
.coupon-li{
	display: flex;
	margin-bottom: 20rpx;
	.coupon-li-left{
		width: 252rpx;
		height: 190rpx;
		background: url(http://shoe-orange.laiwang.work/img/youhuiquan.png) no-repeat;
		background-size: 100% 100% ;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		.price{
			color: #FFFFFF;
			font-size: 60rpx;
			font-weight: 800;
			display: flex;
			align-items: flex-end;
			text{
				font-size: 36rpx;
				font-weight: bold;
				margin-right: 15rpx;
				margin-bottom: 10rpx;
			}
		}
		.des{
			color: #FFFFFF;
			font-size: 24rpx;
			font-weight: 500;
			margin-top: 5rpx;
		}
	}
	.coupon-li-right{
		width: calc(100% - 252rpx);
		border: 1px solid #F1EFEF;
		border-left: 0;
		padding-left: 21rpx;
		padding-top: 30rpx;
		padding-bottom: 31rpx;
		padding-right: 22rpx;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		.title{
			font-size: 28rpx;
			line-height: 36rpx;
		}
		.bottom{
			display: flex;
			align-items: center;
			justify-content: space-between;
			button{
				width: 120rpx;
				height: 40rpx;
				background: #FBAA27;
				border-radius: 20rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				font-size: 24rpx;
				color: #FFFFFF;
			}
		}
		.time{
			font-size: 22rpx;
			color: #7C7C7C;
		}
	}
}

</style>
